<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #wrap{
            width: 300px;
            height: 300px;
            background: pink;
        }
        #inner{
            width: 200px;
            height: 200px;
            background: deeppink;
        }
        #test{
            width: 100px;
            height: 100px;
            background: gray;
        }
    </style>
</head>
<body>
    <div id="app">
        <button @click.once="handleC">{{msg}}</button>
        <button @click.left="handleC('左',$event)">{{msg}}-左</button>
        <button @click.right.prevent="handleC">{{msg}}-右</button>
        <button @click.middle="handleC">{{msg}}-中</button>
    </div>
</body>
<script src="./js/vue.js"></script>
<script>
    var test = "test";

    Vue.config.productionTip = false;

    var vm = new Vue({
        el:"#app",
        data:{
            msg:"点我啊"
        },
        methods:{
            handleC(data,ev){
                console.log("button click",data,ev)
            }
        }
    })
</script>
</html>